package com.youlv.yl.entity.hotel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * <p>
 * 订单详情表 
 * </p>
 *
 * @author fenghe
 * @since 2022-01-25
 */
@Data
@TableName("h_hotel_order_item")
@ApiModel(value = "HotelOrderItem对象", description = "订单详情表 ")
public class HotelOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("oid")
    private Long oid;

    @TableField("hotelName")
    private String hotelName;

    @TableField("houseType")
    private String houseType;

    @TableField("num")
    private Integer num;

    @TableField("price")
    private Double price;

    @TableField("ctime")
    private Date ctime;

    public HotelOrderItem(Long oid, String hotelName, String houseType, Integer num, Double price) {
        this.oid = oid;
        this.hotelName = hotelName;
        this.houseType = houseType;
        this.num = num;
        this.price = price;
        this.ctime = new Date();
    }
}
